package com.movie.service.Impl;

import com.movie.beans.LoginInfo;
import com.movie.dao.RecordDAO;
import com.movie.service.RecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RecordServiceImpl implements RecordService {
    @Resource
    private RecordDAO recordDAO;

    @Override
    public void insert(LoginInfo loginInfo) {
        recordDAO.insert(loginInfo);
    }

    @Override
    public List<LoginInfo> list() {
        return recordDAO.list();
    }
}
